package com.zhiyou100.model;

import java.util.Date;

public class User {
    private Integer id;

    private String phone;

    private Integer code;

    private Date codeSendTime;

    private String photo;

    private String name;

    private Integer gender;

    private Date birthday;

    private String workProvince;

    private String workCity;

    private String birthProvince;

    private String birthCity;

    private String introduction;

    private String password;

    
    
    public User() {
		super();
	}

    
    
	@Override
	public String toString() {
		return "User [id=" + id + ", phone=" + phone + ", code=" + code + ", codeSendTime=" + codeSendTime + ", photo="
				+ photo + ", name=" + name + ", gender=" + gender + ", birthday=" + birthday + ", workProvince="
				+ workProvince + ", workCity=" + workCity + ", birthProvince=" + birthProvince + ", birthCity="
				+ birthCity + ", introduction=" + introduction + ", password=" + password + "]";
	}



	public User(Integer id, String photo, String name, Integer gender, Date birthday, String workProvince,
			String workCity, String birthProvince, String birthCity, String introduction) {
		super();
		this.id = id;
		this.photo = photo;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.workProvince = workProvince;
		this.workCity = workCity;
		this.birthProvince = birthProvince;
		this.birthCity = birthCity;
		this.introduction = introduction;
	}

	public User(Integer id, String phone, Integer code, Date codeSendTime, String photo, String name, Integer gender,
			Date birthday, String workProvince, String workCity, String birthProvince, String birthCity,
			String introduction, String password) {
		super();
		this.id = id;
		this.phone = phone;
		this.code = code;
		this.codeSendTime = codeSendTime;
		this.photo = photo;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.workProvince = workProvince;
		this.workCity = workCity;
		this.birthProvince = birthProvince;
		this.birthCity = birthCity;
		this.introduction = introduction;
		this.password = password;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Date getCodeSendTime() {
        return codeSendTime;
    }

    public void setCodeSendTime(Date codeSendTime) {
        this.codeSendTime = codeSendTime;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getWorkProvince() {
        return workProvince;
    }

    public void setWorkProvince(String workProvince) {
        this.workProvince = workProvince == null ? null : workProvince.trim();
    }

    public String getWorkCity() {
        return workCity;
    }

    public void setWorkCity(String workCity) {
        this.workCity = workCity == null ? null : workCity.trim();
    }

    public String getBirthProvince() {
        return birthProvince;
    }

    public void setBirthProvince(String birthProvince) {
        this.birthProvince = birthProvince == null ? null : birthProvince.trim();
    }

    public String getBirthCity() {
        return birthCity;
    }

    public void setBirthCity(String birthCity) {
        this.birthCity = birthCity == null ? null : birthCity.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }
}